package com.qn.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Package: com.qn.controller
 * @ClassName: HelloController
 * @Author: Qning
 * @CreateTime: 2021/3/20 20:07
 * @Description: //TODO
 **/
@RestController
public class HelloController {
    @Value("${spring.profiles.active}")
    private String evn;

    @RequestMapping("/")
    public String hello() {
        return "index";
    }

    @RequestMapping("test")
    public String test(){
        return evn;
    }
}
